class Gprofile {

	String displayName
	String location
	String imageName
        
        String homepageUri
        String address
        String city
        String state
        String country
        String postcode
        String phoneNumber
    
/*
	String timeZone 
	String url1
	String url2
	String url3
	String imIdAim
	String imIdYim
	String imIdMsn
	String imIdGtalk
*/

        static constraints = {
		displayName:[blank:true,nullable:true]
		location:[blank:true,nullable:true]
		imageName:[blank:true,nullable:true]
                homepageUri:[blank:true,nullable:true]
                address:[blank:true,nullable:true]
                city:[blank:true,nullable:true]
                state:[blank:true,nullable:true]
                country:[blank:true,nullable:true]
                postcode:[blank:true,nullable:true]
                phoneNumber:[blank:true,nullable:true]

/*
		timeZone:[blank:true,nullable:true]
		url1:[blank:true,nullable:true]
		url2:[blank:true,nullable:true]
		url3:[blank:true,nullable:true]
		imIdAim:[blank:true,nullable:true]
		imIdYim:[blank:true,nullable:true]
		imIdMsn:[blank:true,nullable:true]
		imIdGtalk:[blank:true,nullable:true]
*/
	}

        def imageTag() {
            if(imageName=='none' || imageName=='') { 
              return "<img src='/grailskit/images/thumbs/no_thumb.png'/>"
            } else { 
              return "<img src='/grailskit/images/thumbs/" + imageName + ".png'/>"
            }
        }
}
